package com.charging.system.service;

import java.util.List;
import com.charging.system.domain.KxRechargeRecord;

/**
 * 充值记录Service接口
 *
 * @author charging
 * @date 2024-04-19
 */
public interface IKxRechargeRecordService
{
    /**
     * 查询充值记录
     *
     * @param rechargeRecordId 充值记录主键
     * @return 充值记录
     */
    public KxRechargeRecord selectKxRechargeRecordByRechargeRecordId(Long rechargeRecordId);

    /**
     * 查询充值记录列表
     *
     * @param kxRechargeRecord 充值记录
     * @return 充值记录集合
     */
    public List<KxRechargeRecord> selectKxRechargeRecordList(KxRechargeRecord kxRechargeRecord);

    /**
     * 新增充值记录
     *
     * @param kxRechargeRecord 充值记录
     * @return 结果
     */
    public int insertKxRechargeRecord(KxRechargeRecord kxRechargeRecord);

    /**
     * 修改充值记录
     *
     * @param kxRechargeRecord 充值记录
     * @return 结果
     */
    public int updateKxRechargeRecord(KxRechargeRecord kxRechargeRecord);

    /**
     * 批量删除充值记录
     *
     * @param rechargeRecordIds 需要删除的充值记录主键集合
     * @return 结果
     */
    public int deleteKxRechargeRecordByRechargeRecordIds(Long[] rechargeRecordIds);

    /**
     * 删除充值记录信息
     *
     * @param rechargeRecordId 充值记录主键
     * @return 结果
     */
    public int deleteKxRechargeRecordByRechargeRecordId(Long rechargeRecordId);

    /**
     * 充值成功后回调支持业务
     * @param kxRechargeRecord
     */
    void rechargeSuccessAction(KxRechargeRecord kxRechargeRecord);
}
